package com.scorpio.basic.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.scorpio.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scorpio.common.utils.verification.DefaultGroup;

import javax.validation.constraints.NotNull;

/**
 * 首页列资源对象 sc_home_list_res
 *
 * @author scorpio
 * @date 2021-11-16
 */
@TableName("sc_home_list_res")
public class HomeListResEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    //关联首页列表
    @NotNull(message = "无效操作", groups = {DefaultGroup.class})
    private Long hId;

    //展示位置
    private String showSite;

    //图片
    private String image;

    //跳转类型;1=无跳转,2=跳转url,3=跳转商品
    private String skipType;

    //跳转参数
    private String skipValue;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void sethId(Long hId) {
        this.hId = hId;
    }

    public Long gethId() {
        return hId;
    }

    public void setShowSite(String showSite) {
        this.showSite = showSite;
    }

    public String getShowSite() {
        return showSite;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }

    public void setSkipType(String skipType) {
        this.skipType = skipType;
    }

    public String getSkipType() {
        return skipType;
    }

    public void setSkipValue(String skipValue) {
        this.skipValue = skipValue;
    }

    public String getSkipValue() {
        return skipValue;
    }

}
